package com.beidu.lottery.call.service.portal.validator.impl;


import com.beidu.lottery.call.constant.ActivityTypeEnum;
import com.beidu.lottery.call.service.portal.validator.AbstractValidator;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * 拉票规则校验 实现类
 *
 * @author 北渡
 */
@Slf4j
@Service
public class CanvassValidator extends AbstractValidator {

    /**
     * 需要执行的校验函数
     * <p>
     * TODO 扩展
     */
    private final List<String> methods = Collections.singletonList(
            "activityDateValidate"); // 活动时间校验

    @Override
    protected ActivityTypeEnum getActivityType() {
        return ActivityTypeEnum.VOTE;
    }

    @Override
    protected List<String> getMethods() {
        return methods;
    }

}
